/**
 * Copyright (C) 2021 universal
 * 
 * This file is part of input-overlay.
 * 
 * input-overlay is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License.
 * 
 * input-overlay is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with input-overlay.  If not, see <http://www.gnu.org/licenses/>.
 */

@import url("colors.css");

.canvas-container {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

#editor-title {
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row: 1;
}

.editor-properties {
    padding-right: 5px;
}

.edit-grid {
    display: grid; 
    width: 100%;
    height: 100%;
    grid-template-columns: 200px;
    grid-template-rows: 25px auto;
}

.intro-grid > div {
    padding-top: 10px;
}

.intro-grid {
    display: grid; 
    width: 100%;
    grid-template-columns: 50% 50%;
    grid-template-rows: repeat(25px);
    grid-auto-flow: row dense;
}

.setup-wide {
    grid-column-start: 1;
    grid-column-end: 3;
}

.properties {
    display: grid; 
    width: 100%;
    grid-template-columns: 16% 34% 16% 34%; 
}

.blurred {
    filter: blur(4px);
    -webkit-filter: blur(4px);
}

.left-column {
    width: 180pt;
}

.modal-dialog {
    position: fixed;
    background-color: rgba(20, 20, 20, 0.5);
    top: 0;
    right: 0 !important;
    bottom: 0;
    left: 0;
    z-index: 999;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    transition: all 0.5s; 
}

#setup-dialog {
    margin-left: auto;
    margin-right: auto;
    width: fit-content !important;
    height: fit-content !important;
}

#edit-element-dialog {
    opacity: 0;
    display: none;
    height: 80% !important;
    pointer-events: none;
    margin-left: 150px;
    margin-right: 150px;
}

.modal-window>div {
    border-radius: 6px;
    position: relative;
    margin: 10% auto;
    padding: 8px;
    border-style: solid;
    border-width: 1px;
    /* box-shadow: 0px 0px 9px 9px #b6b5b546; */
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
    text-decoration: none;
    display: block;
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    background-color: var(--theme-accent-hovered);

}

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.show {
    display: block;
}

#element-dialog {
    width: 130pt;
}

.dropdown-content {
    padding-bottom: 3px;
    padding-top: 3px;
    border-radius: 6px;
    border-style: solid;
    border-width: 1px;
    
    background-color: var(--dark-window-bg);
    background-image: var(--dark-window-gradient);
    border-color: var(--dark-window-border);

}

.dialog, .modal-dialog {
    padding: 7px;
    border-radius: 6px;
    border-style: solid;
    border-width: 1px;
    box-shadow: 0px 0px 5px 5px #29282850;
    top: 50%;
    right: 5px;
    transform: translate3d(0%, -50%, 0);
    position: absolute;
    background-color: var(--dark-window-bg);
    background-image: var(--dark-window-gradient);
    border-color: var(--dark-window-border);
}

.dialog-title {
    text-align: center;
    font-size: 12pt !important;
    padding: 0px 4px 6px 4px;
}

a { 
    color: var(--theme-accent-hovered);
}

a:visited {
    color: var(--theme-accent-bright);
}
.noselect,
p,
label,
.dropdown-content a {
    -webkit-touch-callout: none; /* ios safari */
    -webkit-user-select: none; /* safari */
    -khtml-user-select: none; /* konqueror html */
    -moz-user-select: none; /* old versions of firefox */
    -ms-user-select: none; /* internet explorer/edge */
    user-select: none; /* non-prefixed version, currently
                                  supported by chrome, opera and firefox */
}

.label,
.dropdown-content a,
p,
label,
input[type="button"] {
    font-family: "Arial", Times, serif;
    font-size: 11pt;
    color: var(--dark-text);
    margin-bottom: 0px;
    margin-top: 0px;
}

input[type="text"] {
    height: 18px;
    width: 100%;
}

.textbox-container, .textbox-container-wide, .textbox-container-medium {
    display: flex;
    width:100%;
    padding-top: 2px;
    padding-bottom: 2px;
}

.textbox-container-wide {
    grid-column-start: 2;
    grid-column-end: 5;
}

.label-container-wide {
    grid-column-start: 1;
    grid-column-end: 3;
}

.textbox-container-medium {
    grid-column-start: 4;
    grid-column-end: 5;
}

.full-width { 
    width: 100%;
}

.grid-full-width {
    grid-column-start: 1;
    grid-column-end: 5;
    padding-top: 2px;
    padding-bottom: 2px;
}

input[type="text"],
input[type="button"] {
    border-radius: 3px;
    border-style: solid none none none;
    border-width: 1px;
    background: var(--dark-control);
    border-color: var(--dark-control-border);
    color: var(--dark-textbox);
}

input[type="button"] {
    height: 22px;
    cursor: pointer;
}

input[type="file"] {
    display: none;
}


.value > p,
.value > input {
    display: inline;
}

.properties > div > label {
    padding-left: 9px;
    padding-top: 5px;
    width: 100%;
    display: inline-table;
}

/* Checkbox */
.cbx {
    position: relative;
    display: block;
    float: left;
    width: 15px;
    height: 15px;
    border-radius: 4px;
    transition: all 0.15s ease;
    background-color: var(--bright-control-gradient-bottom);
    background-image: var(--bright-control-gradient);
    box-shadow: var(--bright-control-inset);
}

.cbx svg {
    position: absolute;
    top: 3px;
    left: 3px;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke: var(--theme-stroke);
    stroke-width: 2;
    stroke-dasharray: 17;
    stroke-dashoffset: 17;
    transform: translate3d(0, 0, 0);
}

.cbx + span {
    float: left;
    margin-left: 6px;
}

input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

input[type="checkbox"]:checked + .cbx {
    background-color: var(--dark-control-gradient-bottom);
    background-image: linear-gradient(var(--theme-accent), var(--theme-accent));
}

input[type="checkbox"]:checked + .cbx svg {
    stroke-dashoffset: 0;
    transition: all 0.25s ease;
}

.cbx-label {
    padding-bottom: 5px;
}

.cbx-label > span {
    cursor: pointer;
}